/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dotexe.webframework.core.clientactions;

import org.json.JSONException;

import com.dotexe.webframework.core.ClientApplication;

/**
 *
 * @author jovan.tomasevic
 */
public class InfoMessage {
 public static void showMessage(String message, ClientApplication app) throws JSONException{
        InfoMessage.showMessage("Message", message, app);
    }
    public static void showMessage(String header,String message,ClientApplication app ) throws JSONException{
        ShowInfoMessageConfiguration messageConfig = new ShowInfoMessageConfiguration();
        messageConfig.setCaption(header);
        messageConfig.setText(message);
        app.clientActions.add(messageConfig);
    }
}
